package lab_01;

public class test12 {
    public static void main(String[] args) {
        int ge,shi,bai;
        int m=0;
        int total=0;
        for(int i=100;i<1000;i++){
            ge=i%10;
            shi=i/10%10;
            bai=i/100;
            int b=(int) (Math.pow(ge,3)+Math.pow(shi, 3)+Math.pow(bai, 3));
            if(i==b){
                System.out.println(i);
                total+=i;
                m++;
            }
        }
        System.out.println("total:"+total);
        System.out.println(m);
    }


        }

